
var game_file_list = [
    //以下为自动修改，请勿修改
    //----auto game_file_list start----
	"libs/modules/egret/egret.js",
	"libs/modules/egret/egret.native.js",
	"libs/modules/eui/eui.js",
	"libs/modules/res/res.js",
	"libs/modules/tween/tween.js",
	"libs/modules/game/game.js",
	"libs/modules/game/game.native.js",
	"libs/modules/dragonBones/dragonBones.js",
	"libs/modules/rm/rm.min.js",
	"libs/modules/stats/stats.js",
	"libs/modules/egret3d/egret3d.js",
	"bin-debug/event/EventController.js",
	"bin-debug/event/GameConfigEvent.js",
	"bin-debug/event/GameEvent.js",
	"bin-debug/event/GameSocketEvent.js",
	"bin-debug/event/PlayerEvent.js",
	"bin-debug/game/ConfigManager.js",
	"bin-debug/game/control/SceneControl.js",
	"bin-debug/util/HtmlTextUtil.js",
	"bin-debug/game/data/NoticeTxtString.js",
	"bin-debug/GameConfig.js",
	"bin-debug/loader/AssetAdapter.js",
	"bin-debug/loader/MainLoader.js",
	"bin-debug/loader/ThemeAdapter.js",
	"bin-debug/Main.js",
	"bin-debug/ui/AppConstant.js",
	"bin-debug/ui/BaseDisplayApp.js",
	"bin-debug/ui/component/notice/BottomNoticeUI.js",
	"bin-debug/ui/component/notice/NoticeController.js",
	"bin-debug/ui/component/notice/NoticeTxtUI.js",
	"bin-debug/ui/component/notice/NoticeTypeEnum.js",
	"bin-debug/ui/component/notice/TopNoticeUI.js",
	"bin-debug/ui/component/UICountDown.js",
	"bin-debug/ui/component/UITipsLayer.js",
	"bin-debug/ui/UIController.js",
	"bin-debug/ui/UILoading.js",
	"bin-debug/ui/UISharedController.js",
	"bin-debug/util/ByteArrayUtil.js",
	"bin-debug/util/DateUtil.js",
	"bin-debug/util/FPSCounter.js",
	"bin-debug/util/md5.js",
	"bin-debug/util/ResourceUtil.js",
	"bin-debug/world/AxisMesh.js",
	"bin-debug/world/CameraController.js",
	"bin-debug/world/ControllerBase.js",
	"bin-debug/world/HoveController.js",
	"bin-debug/world/LightControl.js",
	"bin-debug/world/UVSheetMethod.js",
	"bin-debug/world/WorldCanvas.js",
	"bin-debug/world/WorldControl.js",
	//----auto game_file_list end----
];

var window = this;

egret_native.setSearchPaths([""]);

egret_native.requireFiles = function () {
    for (var key in game_file_list) {
        var src = game_file_list[key];
        require(src);
    }
};

egret_native.egretInit = function () {
    egret_native.requireFiles();
    egret.TextField.default_fontFamily = "/system/fonts/DroidSansFallback.ttf";
    //egret.dom为空实现
    egret.dom = {};
    egret.dom.drawAsCanvas = function () {
    };
};

egret_native.egretStart = function () {
    var option = {
        //以下为自动修改，请勿修改
        //----auto option start----
		entryClassName: "Main",
		frameRate: 30,
		scaleMode: "showAll",
		contentWidth: 1280,
		contentHeight: 720,
		showPaintRect: false,
		showFPS: false,
		fpsStyles: "x:0,y:0,size:30,textColor:0x0094ff,bgAlpha:0.9",
		showLog: false,
		logFilter: "",
		maxTouches: 2,
		textureScaleFactor: 1
		//----auto option end----
    };

    egret.native.NativePlayer.option = option;
    egret.runEgret();
    egret_native.Label.createLabel(egret.TextField.default_fontFamily, 20, "", 0);
    egret_native.EGTView.preSetOffScreenBufferEnable(true);
};